// 当前这个模块进行API接口统一管理
import requests from "./request";
import mockRequests from './mockAjax';
// 三级联动的接口
// api/product/getBaseCategoryList   get请求  无参数
// 发情求:axios发请求返回结果是Promise对象
export const reqCategoryList = ()=>requests({url:'/product/getBaseCategoryList',method:'get'});

// 获取banner
export const reqGetBannerList = ()=> mockRequests.get('/banner');

// 获取floor
export const reqFloorList =()=> mockRequests.get('/floor');

// 获取Search模块数据  地址：/api/list 请求方式post
export const reqGetSearchInfo = (params) => requests({url:'/list',method:'post',data:params});

// 获取产品信息接口 url:/api/item/{ skuId } 请求方式get
export const reqGoodsInfo = (skuId)=>requests({url:`/item/${ skuId }`,method:'get'})


